#!/usr/bin/env python
# -*- coding:utf-8 -*-
# content = input("请输入内容：")
# index = 0
# while index < len(content):
#     # 0 1 2 3....
#     print( content[index] )
#     index += 1


# name = "AlEX"
# data = name.lower()
# print(name) # AlEX
# print(data) # alex

# data = input("请输入一个数字")  # "123"  "abc"
#
# # 判断字符串是否全部都是十进制数
# # v = data.isdecimal() # True / False
# if data.isdecimal():
#     num = int(data)
#     print(num)
# else:
#     print("输入错误")









data = input("请输入一个数字")
print(data.isdecimal()) # 123,true; abc,false； ②，false
print(data.isdigit()) # 123,true; abc,false； ②，true





